package edu.faytechcc.csc251.elementalTD;

import java.awt.*;
import javax.swing.*;

/**
 * Creates the main frame to hold everything and calls 
 * GameDisplay class
 * 10/10/2013 CIS 251
 * @author William Robles
 */
public class MainFrame extends JFrame
{
    public static Dimension size = new Dimension(650,475);

    public MainFrame()
    {
        this.setTitle("Elmental TD - ALPHA");
        this.setSize(size);
        this.setResizable(false);
        this.setLocationRelativeTo(null);
        this.setUndecorated(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setLayout(new GridLayout(1,1));

        GameDisplay game = new GameDisplay(this);
        add(game);  
        
        setVisible(true);
    }
}

